
"""
import socket

print socket.gethostbyaddr(socket.getfqdn(socket.gethostname()))

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("www.nus.edu.sg", 80))
print s.getsockname()

"""

from pkg_resources import resource_filename


import sys
import rpyc


"""
class A(object):
    def __init__(self):
        pass
    
    @property
    def avg(self):
        return 5
    
    def t(self):
        return self.avg

a = A()
print a.t()

t="{0:{'left'}{'^'}5}{1}".format("",5)
print t
"""